package com.changgou.goods.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * Spu和Sku组合实体类
 *
 * Goods进行json转换后:
 *      {
 *          spu:{....}
 *          skuList: [ {...} ... ]
 *      }
 */
public class Goods implements Serializable {
    //spu是商品(一个)
    private Spu spu;
    //sku是商品的库存(多个)
    private List<Sku> skuList;

    public Spu getSpu() {
        return spu;
    }

    public void setSpu(Spu spu) {
        this.spu = spu;
    }

    public List<Sku> getSkuList() {
        return skuList;
    }

    public void setSkuList(List<Sku> skuList) {
        this.skuList = skuList;
    }
}
